package com.qianya.model.pojo.patient.qo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qianya.model.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 患者档案
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PatientFileInfoUpdateQO对象", description="患者档案")
public class PatientFileInfoUpdateQO implements Serializable {
    private static final long serialVersionUID = 7120734002129015439L;
    @ApiModelProperty(value = "档案编号")
    @Length(max = 32,message = "不是合法患者档案编号")
    @NotBlank(message = "档案编号不能为空" )
    @TableId(value = "file_id", type = IdType.UUID)
    private String fileId;

    @ApiModelProperty(value = "患者头像，base64图片格式")
    @NotBlank(message = "图片不能为空" )
    private String filePatientIcon;


}
